package com.zzs.client.pojo.dto.submit;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zzs
 * @date 2025/04/01
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class CodeSubmitDTO {
    @NotNull(message = "必须指定题目id")
    private Long problemId;

    @NotNull(message = "必须指定编程语言")
    @Min(value = 1, message = "编程语言不合法")
    @Max(value = 1, message = "编程语言不合法")
    private Integer language;

    @NotNull(message = "必须指定代码")
    private String code;
}
